package com.example.interfacecall.domain;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class GetBaoHanInfoInDto {
//    @NotBlank(message = "appKey不能为空！")
//    @JSONField(name = "appkey")
    private String appkey;

    @NotNull(message = "请求时间不能为空！")
    @JSONField(name = "timestamp")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date timestamp;
    /**
     * 业务流水号
     */
    @NotBlank(message = "业务流水号不能为空！")
    @JSONField(name = "applyno")
    private String applyno;
    /**
     * 保函编号
     */
    @NotBlank(message = "保函编号不能为空！")
    @JSONField(name = "baohanno")
    private String baohanno;

    @NotBlank(message = "报文签名不能为空！")
    @JSONField(name = "sign")
    private String sign;


}
